package utils

func MapIntToString(data map[int]int) map[string]int {
	result := make(map[string]int, len(data))
	for key, value := range data {
		result[ToString(key)] = value
	}
	return result
}

func StringArrayToMap(list []string) map[string]int {
	m := make(map[string]int, len(list))
	for index, key := range list {
		m[key] = index
	}
	return m
}
